package org.blogwu.learn.multithread.chapter3.demo18;

public class StaticTest {
    public static void main(String[] args) {
        staticFunction();
    }

    static StaticTest st = new StaticTest();

    static {
        System.out.println("1");  //4
    }

    {
        System.out.println("2");   // 5
    }

    StaticTest() {
        System.out.println("3");   // 1
        System.out.println("a=" + a + ",b=" + b);  //2     0
    }

    public static void staticFunction() {
        System.out.println("4"); // 3
    }

    int a = 110;
    static int b = 112;
}
